package com.dycloud.project.controller;

import com.dycloud.project.domain.MeetingReceipt;
import com.dycloud.project.service.IMeetingReceiptService;
import com.dycloud.project.vo.MeetingReceiptListVO;
import com.dycloud.project.web.controller.BaseController;
import com.dycloud.project.web.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author : renhang
 * @description MeetingReceiptController
 * @date : 2025-07-03 15:58
 **/
@RestController
@RequestMapping("/business/receipt")
public class MeetingReceiptController extends BaseController {
    @Autowired
    private IMeetingReceiptService meetingReceiptService;

    /**
     * 查询会议回执列表
     */
    @PreAuthorize("@ss.hasPermi('admin')")
    @GetMapping("/list")
    public TableDataInfo list(MeetingReceipt meetingReceipt) {
        startPage();
        List<MeetingReceiptListVO> list = meetingReceiptService.selectMeetingReceiptList(meetingReceipt);
        return getDataTable(list);
    }


}